import axios from '@/libs/api.request'

// 账单认领
export class FinanceReceivableClaimApi {
  //  资金认领列表
  static getReceivableList (params) {
    return axios.request({
      url: '/FinanceReceivableClaim/GetReceivableList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 导出
  static export (params) {
    return axios.request({
      url: '/FinanceReceivableClaim/Export',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 根据ID获取弹窗信息
  static getInfo (params) {
    return axios.request({
      url: '/FinanceReceivableClaim/GetInfo',
      method: 'get',
      enctype: 'multipart/form-data',
      params: params
    })
  }

  // 认领列表
  static getClaimList (params) {
    return axios.request({
      url: '/FinanceReceivableClaim/GetClaimList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 获取认领的公司下拉框
  static companys (params) {
    return axios.request({
      url: '/FinanceReceivableClaim/Companys',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 获取认领的公司下拉框new
  static treatmentCompanys (params) {
    return axios.request({
      url: '/FinanceReceivableClaim/TreatmentCompanys',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 获取当前公司已审核的账单月份
  static getBillMonths (params) {
    return axios.request({
      url: '/FinanceReceivableClaim/GetBillMonths',
      method: 'get',
      enctype: 'multipart/form-data',
      params: params
    })
  }

  // 增加账单认领
  static addBillClaim (params) {
    return axios.request({
      url: '/FinanceReceivableClaim/AddBillClaim',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 增加待遇认领
  static addTreatClaim (params) {
    return axios.request({
      url: '/FinanceReceivableClaim/AddTreatClaim',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 回退
  static back (params) {
    return axios.request({
      url: '/FinanceReceivableClaim/Back',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 获取新增认领时候的险种
  static enum (params) {
    return axios.request({
      url: '/FinanceReceivableClaim/Enum',
      method: 'get',
      enctype: 'multipart/form-data',
      params: params
    })
  }

  // 获取险种当前可认领金额
  static getAmtByInsuranceType (params) {
    return axios.request({
      url: '/FinanceReceivableClaim/GetAmtByInsuranceType',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 获取对应公司员工列表
  static getEmployeeList (params) {
    return axios.request({
      url: '/FinanceReceivableClaim/GetEmployeeList',
      method: 'get',
      enctype: 'multipart/form-data',
      params: params
    })
  }

  // 获取对应公司员工列表new
  static getTreatmentEmployeeList (params) {
    return axios.request({
      url: '/FinanceReceivableClaim/GetTreatmentEmployeeList',
      method: 'get',
      enctype: 'multipart/form-data',
    params: params
    })
  }

  // 获取险种当前可认领金额
  static addTreatmentClaim (params) {
    return axios.request({
      url: '/FinanceReceivableClaim/AddTreatmentClaim',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 获取对应公司员工列表
  static getTreatmentView (params) {
    return axios.request({
      url: '/FinanceReceivableClaim/GetTreatmentView',
      method: 'get',
      enctype: 'multipart/form-data',
      params: params
    })
  }

  // 待遇认领回退
  static treatmentToBack (params) {
    return axios.request({
      url: '/FinanceReceivableClaim/TreatmentToBack',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }
}
